﻿using BasicData.Domain.Source;
using BasicData.Domain;
using Microsoft.EntityFrameworkCore;

namespace BasicData.Infastruucture
{
    public class MyContext : DbContext
    {
        public MyContext(DbContextOptions options) : base(options)
        {
        }

        /// <summary>
        /// 用户实体
        /// </summary>
        public DbSet<UserModel> UserModels { get; set; }
        /// <summary>
        /// 角色实体
        /// </summary>
        public DbSet<RoleModel> RoleModels { get; set; }
        /// <summary>
        /// 用户角色实体
        /// </summary>
        public DbSet<UserRoleModel> UserRoleModels { get; set; }
        /// <summary>
        /// 权限实体
        /// </summary>
        public DbSet<PermissionModel> PermissionModels { get; set; }
        /// <summary>
        /// 角色权限实体
        /// </summary>
        public DbSet<RolePermissionModel> RolePermissionModels { get; set; }
        /// <summary>
        /// 公共字典类型实体
        /// </summary>
        public DbSet<DictTypeModel> dictTypes { get; set; }
        /// <summary>
        /// 公共字典明细实体
        /// </summary>
        public DbSet<DictItemModel> dictItems { get; set; }
        /// <summary>
        /// 溯源管理  商品表
        /// </summary>
        public DbSet<ProductModel> products { get; set; }

        /// <summary>
        /// 溯源管理养殖表
        /// </summary>
        public DbSet<BreedModel> breeds { get; set; }
        /// <summary>
        /// 溯源管理免疫表
        /// </summary>
        public DbSet<ImmunityModel> immunities { get; set; }
        /// <summary>
        /// 溯源管理企业表
        /// </summary>
        public DbSet<FarmEnterpriseModel> farmEnterprises { get; set; }
        /// <summary>
        /// 屠宰信息表
        /// </summary>
        public DbSet<SlaughteModel> slaughtes { get; set; }
        /// <summary>
        /// 屠宰企业信息
        /// </summary>
        public DbSet<SlaughteEnterpriseModel> slaughteEnterprises { get; set; }
    }
}
